import java.util.Scanner;

public class java19 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int[] x=new int[5];
        for(int i=0;i<=4;i++){
            System.out.println("请输入:");
        x[i] = scanner.nextInt();
    }
        for(int i=0;i<=4;i++) {
            System.out.print(x[i]);
        }
        System.out.println("");
        int xiao=x[0];
        for(int i=0;i<=4;i++){
            if(x[i]<xiao)
                x[i]=xiao;
        }
        System.out.println(+xiao);

}
}
